]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Account for promisified call() method
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 19 Dec 2019 19:50:37 +0000 (20:50 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 3 Apr 2020 02:02:40 +0000 (02:02 +0000)
commit1666fa195df75afe8d52f1ddd57ce7564dc8b387
tree059ffaf66c2461e805aef066e5aafc6a97f46a84
parenta9df4e7516cd78f27c92d13fc53942e4c9fb365c
js: Account for promisified call() method

A promisified method expects the callback parameter to be either
a function (in which case the original method is called normally)
or omitted altogether (in which case a Promise is returned).

The call to open application details in Software does neither and
passes null instead, which will result in a warning (because no
function argument means a promise will be used, but not omitting
the parameter means we end up with too many arguments).

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2551
js/ui/appDisplay.js
js/ui/panel.js